/**
* <b>Description:</b><br> 
* @author Reading.Reagan</a>
* @version 1.0
* @Note
* <b>ProjectName:</b> setting
* <br><b>PackageName:</b> com.golden.setting.service
* <br><b>ClassName:</b> package-info
* <br><b>Date:</b> 2018年9月18日 下午12:11:01
*/
package com.golden.setting.service;

import java.util.List;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.golden.setting.domain.DictionaryDO;
import com.golden.setting.domain.ResultDO;
import com.golden.setting.query.DictionaryExample;

@RestController
@RequestMapping("/api")
public interface IDictionaryService {
	
	@PostMapping("/dic")
	public ResultDO<DictionaryDO> add(@RequestBody DictionaryDO domain);
	
	@DeleteMapping("/dic/{id}")
	public ResultDO<DictionaryDO> delete(@PathVariable(value = "id") Integer id);
	
	@GetMapping("/dic/{id}")
	public ResultDO<DictionaryDO> get(@PathVariable(value = "id")  Integer id);
	
	@PostMapping("/dics")
	public ResultDO<List<DictionaryDO>> query(@RequestBody DictionaryExample example);
}